<?php
/**
 * ShopEx licence
 *
 * @copyright  Copyright (c) 2005-2010 ShopEx Technologies Inc. (http://www.shopex.cn)
 * @license  http://ecos.shopex.cn/ ShopEx License
 */
 
$db['roles']=array (
  'columns' => 
  array (
    'role_id' => 
    array (
      'type' => 'number',
      'required' => true,
      'pkey' => true,
      'width' => 50,
      'label' => app::get('desktop')->_('工作组id'),
      'hidden' => 1,
      'editable' => false,
      'extra' => 'auto_increment',
      'in_list' => true,
      'comment' => app::get('desktop')->_('管理员角色ID'),
    ),
    //add by peter 2017-03-20 所属办事处
    /* 修改为一个角色对应多个办事处
    'office_id'=>
	array(
		'type'=>'int unsigned',
		'editable'=>false,
		'comment'=>app::get('desktop')->_('所属办事处ID'),
	),
    */
    //add by peter 2017-03-22 是否为总部角色
    'super'=>
    array(
	'type'=>'intbool',
	'default'=>'0',
	'required'=>false,
	'label'=>app::get('desktop')->_('总部角色'),
	'width'=>75,
	'editable'=>false,
	'in_list'=>true,
	'is_title'=>true,
	'default_in_list'=>true,
    ),

    'role_name' => 
    array (
      'type' => 'varchar(100)',
      'required' => true,
      'label' => app::get('desktop')->_('角色名'),
      'width' => 310,
      'in_list' => true,
      'is_title' => true,
      'default_in_list' => true,
    ),
    'workground' => 
    array (
      'label' => app::get('desktop')->_('对应有权限的顶级菜单'),
      'type' => 'text',
      'editable' => false,
      'in_list' => false,
      'hidden' => true,
    ),
	//add by peter 2017-03-24 增加角色所属办事处字段
	'office'=>
	array(
		'label'=>app::get('desktop')->_('对应有权限的办事处'),
		'type'=>'text',
		'editable'=>false,
		'in_list'=>false,
		'hidden'=>true,
	),
  ),
  'version' => '$Rev: 40654 $',
  'comment' => app::get('desktop')->_('管理员角色表'),
);
